<?php 
namespace app\admin\validate;
use app\admin\code\AdminCode;
use app\admin\code\AuthCode;
use app\admin\code\BaseCode;
use app\admin\model\BaseModel;
use think\Validate;

class PicValidate  extends BaseValidate
{
    protected $_rule = [
        'id'       =>  'require',
        'status'   =>  'in:0,1',
    ];
    protected $_field = [
        'id'=>'信息',
        'status'=>'状态',
    ];
    protected $_message = [
        'id.require' => BaseCode::PARAM_CANT_EMPTY,
        'status.in' => BaseCode::PARAM_MUST_BE_URL,
    ];
    protected $_scene = [
        'del' => ['id'],
        'update_status' => ['id','status'],
    ];
}


